package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:51
 * @Description: TODO
 */
public class HistoricalWarning {
    private String time;

    private String event;

    private String address;

    public HistoricalWarning(String time, String event, String address) {
        this.time = time;
        this.event = event;
        this.address = address;
    }

    public HistoricalWarning() {}

    public com.caipin.domain.web.HistoricalWarning setTime(String time) {
        this.time = time;
        return this;
    }

    public com.caipin.domain.web.HistoricalWarning setEvent(String event) {
        this.event = event;
        return this;
    }

    public com.caipin.domain.web.HistoricalWarning setAddress(String address) {
        this.address = address;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.HistoricalWarning))
            return false;
        com.caipin.domain.web.HistoricalWarning other = (com.caipin.domain.web.HistoricalWarning)o;
        if (!other.canEqual(this))
            return false;
        Object this$time = getTime(), other$time = other.getTime();
        if ((this$time == null) ? (other$time != null) : !this$time.equals(other$time))
            return false;
        Object this$event = getEvent(), other$event = other.getEvent();
        if ((this$event == null) ? (other$event != null) : !this$event.equals(other$event))
            return false;
        Object this$address = getAddress(), other$address = other.getAddress();
        return !((this$address == null) ? (other$address != null) : !this$address.equals(other$address));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.HistoricalWarning;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $time = getTime();
        result = result * 59 + (($time == null) ? 43 : $time.hashCode());
        Object $event = getEvent();
        result = result * 59 + (($event == null) ? 43 : $event.hashCode());
        Object $address = getAddress();
        return result * 59 + (($address == null) ? 43 : $address.hashCode());
    }

    public String toString() {
        return "HistoricalWarning(time=" + getTime() + ", event=" + getEvent() + ", address=" + getAddress() + ")";
    }

    public String getTime() {
        return this.time;
    }

    public String getEvent() {
        return this.event;
    }

    public String getAddress() {
        return this.address;
    }
}

